<?php
// 本类由系统自动生成，仅供测试用途
namespace Home\Controller;

class IndexController extends CommonController {

    public function index(){
    	// 读取admin_id
    	$admin_id = $_SESSION['admin_id'];
    	// 添加限制条件
    	$where = array('id' => $admin_id);
    	// 关联查询
    	$data = D('AdminDepartmentRelation')->where($where)->relation(true)->find();
        // 数据映射
        $this->data = $data;
		// 模板显示
		$this->display();
    }
}